function addlog(message) {
	var log = document.getElementById('log');
	if (!log) return;
	log.innerHTML += "<li>"+ message;
}

function setlog(message) {
	var log = document.getElementById('log');
	if (!log) return;
	log.innerHTML = "<li>"+ message;
}
